<%-- 
    Document   : cartPage
    Created on : Jan 26, 2013, 6:20:33 PM
    Author     : trungnm
--%>



<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
    "http://www.w3.org/TR/html4/loose.dtd">
<script type="text/javascript">

</script>

<%@include file="/WEB-INF/headerMainPage.jsp" %>
<html>
    <head>
    </head>
    <body onload="shoppingcart();">
        <input type="hidden" value="${sessionScope.USER}" id="usercheck">
        <div class="background-main">
            <div class="cart" align="center">
                <div align="center" style="color: red">${requestScope.errorCheckOut}</div>
                <div id="quantityError" align="center"><font style="color: red;"></font></div>
                <div id="divCart" >
                    <div id="divTitleCart">
                        <div id="title-Cart-Product">Sản phẩm</div>
                        <div id="title-Cart-Price">Giá</div>
                        <div id="title-Cart-Quantity">Số lượng</div>
                        <div id="title-Cart-Update"></div>
                        <div id="title-Cart-Delete"></div>
                    </div>
                    <div id="divContentCart">
                        <!--                        <input type="hidden" id="content-Cart-ID" name="productID" value=""/>
                                                <div id="content-Cart-Product"></div>
                                                <div id="content-Cart-Price"></div>
                                                <div id="content-Cart-Quantity"><input type="text" id="quantity" value="" size="5" onkeyup="updateCart()"/></div>
                                                <div id="content-Cart-Delete"><input id="deletebtn" type="button" name="btnAction" value="Delete" onclick="deleteItem(productID)"/></div>-->
                    </div>

                </div>
                <div id="divTotalCart">
                    <div id="title-Total">Total</div>
                    <div id="total"></div>
                </div>
                <div id="checkout">
                    <!--                    <a style="text-decoration: none; color: #2F4F4F;" href="Controller?btnAction=CheckOut"><span style="padding: 15px 15px 15px 15px">Check Out</span></a>-->
                    <form method="POST" action="Controller" onsubmit="return checkoutValidation();">
                        <input id="COid" type="hidden" name="idProduct" value="">
                        <input id="COname" type="hidden" name="nameProduct" value="">
                        <input id="COprice" type="hidden" name="priceProduct" value="">
                        <input id="COquantity" type="hidden" name="quantityProduct" value="">
                        <input id="COtotal" type="hidden" name="totalCheckOut" value="">
                        <input id="COProductList" type="hidden" name="ProductListCheckOut" value=""/>
                        <div id="div-input-address">Địa chỉ giao hàng: <input id="input-address" type="text" name="adressDelivery" value="" placeholder=" Nếu không nhập gì, mặc định sẽ là địa chỉ khách hàng đã đăng kí"/><br/>
                        </div>
                        <div>
                            <button type="submit" name="btnAction"  value="CheckOut" style="text-decoration: none; color: #2F4F4F;height: 30px; width: 120px;">Mua hàng</button>
                        </div>
                    </form>
                </div>
            </div>
        </div>
        <%@include file="/WEB-INF/footerMainPage.jsp" %>
    </body>
</html>
<!--<input id='deletebtn' type='button' name='btnAction' value='Delete' onclick='deleteItem("+itemInfo3+")'>
<button id='deletebtn' type='button' name='btnAction' value='Delete' onclick='deleteItem("+itemInfo3+")'>Xóa</button>-->